package com.starlink.model.dtomapper;

import com.starlink.model.domain.SchoolbagOrderDO;
import com.starlink.model.request.SchoolbagOrderRequest;
import com.starlink.model.vo.SchoolbagOrderVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface SchoolbagOrderDtoMapper {

    SchoolbagOrderDtoMapper INSTANCE = Mappers.getMapper(SchoolbagOrderDtoMapper.class);

    /**
    * DO to VO
    * @param schoolbagOrderDO
    * @return
    */
    SchoolbagOrderVO do2VO(SchoolbagOrderDO schoolbagOrderDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    SchoolbagOrderDO request2DO(SchoolbagOrderRequest request);
}
